import request from '@/utils/request'

// 上传工作文件
export const uploadWorkFile = (data) => {
  return request({
    url: '/v1/departmentWork/workFile/upload/',
    method: 'post',
    data,
  })
}

// 查询文件
export const getWorkFile = (file_type, page, page_size, file_date = null) => {
  return request({
    url: '/v1/departmentWork/workFile/',
    method: 'get',
    params: { file_type, page, page_size, file_date },
  })
}
